package com.order.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.api.member.MemberService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OrderController {

    @Reference   //提供调用服务 注解
    private MemberService memberService;

    @RequestMapping("/orderToMember")
    public String orderToMember(){
        System.out.println("订单调用会员");
        return memberService.getUser();
    }
}
